<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <script>

        function f1(){

            var i1=100;
            var s1="100";
            var s2="100";

            //==比较值，不比较类型
            console.log(i1==s1);

            console.log(i1===s1);

            console.log(s1===s2);


            var person={
                "name":"abc",
                "age":21,
                "sex":"m",
                "play":function(){
                    alert(this.name+"正在玩");
                }
            };

            for (fieldName in person) {
                console.log(fieldName+"="+person[fieldName])
            }

        }

    </script>

</head>
<body onload="f1()">

</body>
</html>